package com.example.lab1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class Lab1Application {
    @GetMapping
    Customer getcustomer(){
        return new Customer("张学友",38l);
    }
    class Customer{
        private final String name;
        private final long id ;

        public String getName() {
            return name;
        }

        public long getId() {
            return id;
        }

        public Customer(String name, long id) {
            this.name = name;
            this.id = id;
        }


    }

    public static void main(String[] args) {
        SpringApplication.run(Lab1Application.class, args);
    }

}
